/*
**  File: Range.h
*/
#ifndef RANGEh
#define RANGEh

#define FILENAME_LEN   80
#define MAXRNG         20
void get_ranges(char filename[FILENAME_LEN],int first_model[MAXRNG],
		int last_model[MAXRNG],char first_residue[MAXRNG][7],
		char last_residue[MAXRNG][7],int *nmodel_ranges,
		int *nresidue_ranges,int *both_ends,int *ifail);
int check_model_ranges(int current_model,int first_model[MAXRNG],
		       int last_model[MAXRNG],int nmodel_ranges);
int check_residue_ranges(char residue_number[6],char chain,
			 char first_residue[MAXRNG][7],
			 char last_residue[MAXRNG][7],int nresidue_ranges);

typedef struct
{
  int    nmodel_ranges;
  int    nresidue_ranges;
  int    first_model[MAXRNG];
  int    last_model[MAXRNG];
  char   first_residue[MAXRNG][7];
  char   last_residue[MAXRNG][7];
}
Range;

#endif
